import com.asiainfo.kbisheet.model.KbsModel;
import com.asiainfo.kbisheet.vo.AllExportVO;

import mx.controls.Alert;
import mx.core.FlexGlobals;
import mx.managers.PopUpManager;

[Bindable]
private var kbsModel:KbsModel = KbsModel.getInstance();	

private function handleCloseEvent():void {
	PopUpManager.removePopUp(this);				
}

private function doAllExport():void {
	var allExportVO:AllExportVO = new AllExportVO();
	allExportVO.user_id = kbsModel.userId;
	allExportVO.mobile = edMobile.text;
	allExportVO.rpt_id = "300630";
	if(FlexGlobals.topLevelApplication.parameters["new_menu_id"]){
		allExportVO.rpt_id = FlexGlobals.topLevelApplication.parameters["new_menu_id"];
	}
	allExportVO.rpt_title = kbsModel.kbsSheetVO.sheetTitle;
	allExportVO.exportAllDataBase = kbsModel.exportAllDataBase;
	allExportVO.exportAllTable = kbsModel.exportAllTable;
	flexServiceRO.allExport(allExportVO,kbsModel.queryVO);
}			

private function allExportResult():void{
	Alert.show('操作完成！请留意您的短信提示。', '提示');
	PopUpManager.removePopUp(this);
}